package com.woniuxy.yoga.commons.redis.util.rediskeyutil;

public class CoachRedisKeyUtil {
    /**
     * 教练身份证添加的锁KEY
     */
    public static String lockCoachByIdCard(String coachIdCard){
        return "lock:coach:add:idCard:"+coachIdCard;
    }

    /**
     * 教练联系方式添加的锁KEY
     */
    public static String lockCoachByPhone(String coachPhone){
        return "lock:coach:add:phone:"+coachPhone;
    }

    /**
     * 教练登录发送验证码key
     */
    public static String coachLoginCodeKey(String coachPhone){
        return "coach:login:code:coachPhone:"+coachPhone;
    }

    /**
     *一分钟内是否发送过教练登录短信
     */
    public static String coachLoginCodeOneMinute(String coachPhone){
        return "coach:login:code:minute:coachPhone:"+coachPhone;
    }

    /**
     * 教练一小时发送短信总次数
     */
    public static String coachSendNumbers(String coachPhone){
        return "coach:send:code:numbers:coachPhone:"+coachPhone;
    }
}
